import request from '@/utils/request'
export function getParkDangerNumApi (params) {
  return request({
    url: '/api/hiddenDanger/getParkDangerNum',
    method: 'GET',
    headers: {
      'Content-Type': 'application/json'
    },
    params
  })
}

export function getEnterpriseTatolApi (params) {
  return request({
    url: '/api/enterprise/getEnterpriseTatol',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function editEnterpriseApi (params) {
  return request({
    url: '/api/enterprise/edit',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function pageEnterpriseApi (params) {
  return request({
    url: '/api/enterprise/page',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function addEnterpriseApi (params) {
  return request({
    url: '/api/enterprise/add',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function enterpriseDetail (params) {
  return request({
    url: '/api/enterprise/getOne',
    method: 'GET',
    headers: {
      'Content-Type': 'application/json'
    },
    params
  })
}

export function companyDetail (params) {
  return request({
    url: '/api/park/detail',
    method: 'GET',
    headers: {
      'Content-Type': 'application/json'
    },
    params
  })
}

export function addCompany (params) {
  return request({
    url: '/api/park/add',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}
export function updateCompany (params) {
  return request({
    url: '/api/park/update',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}
